home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Transactor
/
Transactor_24_1988_Transactor_Publishing.d64
/
error check.src
< prev
next >
Wrap
Text File
|
2023-02-26
|
565b
|
32 lines
.opt list,gen,noerr
*=$02a7
old=$0000
strout=$ab1e
error=$a465
lda $0300
sta $02c8
lda $0301
sta $02c9 ;save old vector
lda #$c3
sta $0300
lda #$02
sta $0301 ;store new vector
lda #$60
sta $02a7 ;protect vector
rts
start cpx #$10 ;chk for out of mem
beq outmem
jump jmp old
outmem txa
tsx
cpx $22
bcc stackv ;goto stack overflow
tax
bcs jump
stackv lda #$dd
ldy #$02
jsr strout
jmp error
.byte $53,$54,$41,$43,$4b,$20,$4f,$56
.byte $45,$52,$46,$4c,$4f,$57,$00,$00